home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group92c.txt / 000030_icon-group-sender _Tue Oct 20 12:05:00 1992.msg < prev    next >
Internet Message Format  |  1993-01-04  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Tue, 20 Oct 1992 18:42:45 MST
  2. Message-Id: <199210201711.AA23991@optima.cs.arizona.edu>
  3. From: nowlin@iwtqg.att.com
  4. Date: Tue, 20 Oct 92 12:05 CDT
  5. To: att!cs.arizona.edu!icon-group
  6. Subject: Re: logging off UNIX
  7. Status: R
  8. Errors-To: icon-group-errors@cs.arizona.edu
  9.  
  10.  > You could get around this a) by finding your login shell and then
  11.  > killing it manually (a la system("kill -9 "||process_id) where pro-
  12.  > cess_id is the ID of your login shell.
  13.  
  14. I can't take it anymore.  One of the first things UNIX novices learn is how
  15. to do a "kill -9".  Most haven't a clue what this does but believe me -
  16. it's not a pretty sight.
  17.  
  18. If you have to kill a process use a plain vanilla "kill" first.  This uses
  19. the software termination signal (15) to notify the process in question it
  20. should terminate.  This signal gives the process being killed a chance to
  21. return any resources it's using and clean up after itself before it dies.
  22.  
  23. If that doesn't work try using a "kill -1" which send a hangup signal to
  24. the process.  This is especially good for login shells since they usually
  25. set traps to ignore software termination but most of the time they can
  26. detect a hangup and clean up after themselves before logging you off.
  27.  
  28. If neither of these work then a "kill -9" with the kill signal (we always
  29. called it terminate with extreme prejudice) is a last resort.  The process
  30. being terminated has no chance to dodge this signal or cleanup their mess.
  31.  
  32. I know this has nothing to do with Icon but I couldn't just continue to
  33. have people leave bloody little splotches all over their systems by using
  34. "kill -9".  We need to put a stop to the senseless killing and work toward
  35. a kinder gentler UNIX.
  36.  
  37. Jerry Nowlin
  38.